package chap5.Task;
public class Task14 {
    public static void main(String[] args) {
        int[] a = {1, 2, 3, 4, 5, 6, 7, 8, 9};
        int i, j, k;
        for (i = 0; i < a.length / 2; i++) {
            k = a[a.length - 1 - i];
            a[a.length - 1 - i] = a[i];
            a[i] = k;
        }
        System.out.println("输出数组:");
        for (i = 0; i < a.length; i++) {
            System.out.print(a[i] + " ");
        }

    }
}
